table of contents
rte_cpuflags.h(3) | DPDK | rte_cpuflags.h(3) |
NAME¶
rte_cpuflags.h
SYNOPSIS¶
#include 'rte_common.h'
#include <errno.h>
#include <rte_compat.h>
Data Structures¶
struct rte_cpu_intrinsics
Functions¶
__rte_experimental void rte_cpu_get_intrinsics_support
(struct rte_cpu_intrinsics *intrinsics)
__extension__ const char * rte_cpu_get_flag_name (enum rte_cpu_flag_t
feature)
__extension__ int rte_cpu_get_flag_enabled (enum rte_cpu_flag_t
feature)
int rte_cpu_is_supported (void)
unsigned long rte_cpu_getauxval (unsigned long type)
int rte_cpu_strcmp_auxval (unsigned long type, const char *str)
Detailed Description¶
Architecture specific API to determine available CPU features at runtime.
Definition in file rte_cpuflags.h.
Function Documentation¶
__rte_experimental void rte_cpu_get_intrinsics_support (struct rte_cpu_intrinsics * intrinsics)¶
Warning
Check CPU support for various intrinsics at runtime.
Parameters
__extension__ const char* rte_cpu_get_flag_name (enum rte_cpu_flag_t feature)¶
Get name of CPU flag
Parameters
Returns
__extension__ int rte_cpu_get_flag_enabled (enum rte_cpu_flag_t feature)¶
Function for checking a CPU flag availability
Parameters
Returns
int rte_cpu_is_supported (void)¶
This function checks that the currently used CPU supports the CPU features that were specified at compile time. It is called automatically within the EAL, so does not need to be used by applications. This version returns a result so that decisions may be made (for instance, graceful shutdowns).
unsigned long rte_cpu_getauxval (unsigned long type)¶
This function attempts to retrieve a value from the auxiliary vector. If it is unsuccessful, the result will be 0, and errno will be set.
Returns
int rte_cpu_strcmp_auxval (unsigned long type, const char * str)¶
This function retrieves a value from the auxiliary vector, and compares it as a string against the value retrieved.
Returns
Author¶
Generated automatically by Doxygen for DPDK from the source code.
Fri Dec 15 2023 | Version 23.11.0 |